package br.biofoco.p2p.rpc.messaging;

import java.io.Serializable;

public abstract class WireMessage implements Serializable {

	private static final long serialVersionUID = 1770490023307770661L;
	
	private Integer id;
	private String method;

	public WireMessage() {}
		
	public WireMessage(Integer id, String method) {
		this.id = id;
		this.method = method;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public void setMethod(String method) {
		this.method = method;
	}

	public String getMethod() {
		return method;
	}
}
